package com.hlbspringcloud.signature.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @Author huanglibin
 * @Project signature
 * @Description
 * @Date 2021-01-04-10-03-10
 * @Version 1.0
 */
@Data
public class CardDto {
    @NotBlank
    private String cardId;

    @Size(min = 10,max = 10)
    @NotNull
    private String cardNum; //卡号

    @Past
    @NotNull
    private Date createDate;

    @Range(max = 3)
    private String cardType;
}
